#!/usr/bin/python

class SchoolMember:
	def __init__(self,name,age):
		self.name = name
		self.age = age

	def toString(self):
		return 'name=%s,age=%s' %(self.name, self.age)

	def sayHi(self):
		print 'hi, i am %s' %self.name

	def tell(self):
		print self.toString()

class Teacher(SchoolMember):
	def __init__(self,name,age,salary):
		SchoolMember.__init__(self,name,age)
		self.salary = salary

	def toString(self):
		return SchoolMember.toString(self)+',salary=%s' %self.salary

class Student(SchoolMember):
	def __init__(self,name,age,marks):
		SchoolMember.__init__(self,name,age)
		self.marks = marks

	def toString(self):
		return SchoolMember.toString(self)+',marks=%s' %self.marks

t = Teacher('wzq',32,1000)
# t.sayHi()
t.tell()

s = Student('abc',11,30)
# print(s.toString())
s.tell()